import {
	httpGet,
	httpPost,
	httpPut
} from '../request';




/**
 * @title 牛人列表
 */
export const getCattle = data => httpGet('/cattle', data)

/**
 * @title 牛人详情
 * @param {} id 牛人id 
 */
export const getCattleDetail = id => httpGet(`/cattle/${id}`)


/**
 * @title 面试邀请
 * @param {} data 
 */
export const interview = data => httpPost('/interview', data)

/**
 * @title 获取用户最后一次沟通的职位信息
 * @param {} data 
 */
export const getLastDelivery = (job_id, uid) => httpGet('/interview', { job_id, uid})


/**
 * @title 已发布职位
 */
export const jobpublish = data => httpGet('/jobpublish', data)


/**
 * @title 企业规模
 */
export const getScale = () => httpGet('/scale')


/**
 * @title 福利待遇
 */
export const getTag = () => httpGet('/tag/3')

/**
 * @title 修改公司基本信息
 */
export const companybase = data => httpPost('/companybase', data)


/**
 * @title 切换上下线职位
 */
export const putJobpublish = (id, status) => httpPut(`/jobpublish/${id}`, { status })

/**
 * @title 发布招聘信息
 */
export const postJob = data => httpPost('/job', data)

/**
 * @title 来人直通
 */
export const postCome = data => httpPost('/come', data)

/**
 * @title 企业认证
 */
export const companyauth = data => httpPost('/companyauth', data)


/**
 * @title 获取企业验证码
 */
export const companyAuthSms = mobile => httpPost('/companyAuthSms', { mobile })

/**
 * @title 邀请面试同意
 */
export const agreeinterview = (id,agree,msg_key) => httpPost('/agreeinterview', { id, agree, msg_key })

/**
 * @title 获取单聊消息历史记录
 */
export const imHistory = (to_id) => httpGet('/imHistory?to_id=' + to_id)